<?php
		session_start(); 
		include "libfunc.php";
 			if (!empty($_SESSION['username']) && !empty($_SESSION['password'])) { 
			$link = koneksi_db();
			$nam=$_POST['tbhnamakategori'];
                        $dsc=$_POST['tbhdeskripsi'];
                        $sql = "call TambahKategori('$nam','$dsc')";
                        mysql_query($sql,$link) or exit("Error query : <b>".$sql."</b>.");
			

			}else {
			echo "<script language='javascript'>window.location = '../admin/'</script>";
			}
?>